//
//  ProduceViewController.m
//  MyProject
//
//  Created by dllo on 15/10/31.
//  Copyright (c) 2015年 蓝鸥0825. All rights reserved.
//

#import "ProduceViewController.h"

#define WIDTH self.view.frame.size.width
#define HEIGHT self.view.frame.size.height

@interface ProduceViewController ()

@end

@implementation ProduceViewController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    self.title = @"我的介绍";
    self.view.backgroundColor = [UIColor whiteColor];
    
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT / 100 * 40)];
    image.image = [UIImage imageNamed:@"wodejieshao"];
    [self.view addSubview:image];
    
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(WIDTH / 100 * 5, HEIGHT / 100 * 42, WIDTH / 100 * 90, HEIGHT / 100 * 50)];

    [self.view addSubview:label];
    label.text = @"         lofg 是一款关于美食的软件,　介绍了各地、各种美味名菜、小吃，图文并茂，即长知识、又长见识，按里面的菜普你还能来上一手。本书依照'好吃、好做、实惠”的家庭实用原则，为您一一详解数百道美味的厨中秘诀，令您尽享色、味俱全的居家烹饪之乐。'　精致：色泽淡雅的糖醋三丝·甜松香脆黄金栗米饼，灿若明霞的剁椒鱼头·浓油赤酱的东坡肉·山野本色的砂锅土鸡黄澄欲滴的香酥蛋塔·清丽脱俗的高汤鱼丸。美味：清爽口的精品凉菜·麻辣鲜鲜香的海鲜大餐，大快朵颐的肉类佳肴·清淡怡人的豆制品类·回味无穷的老火靓汤，香酥可口的甜品点心·各擅胜场的风味主食。便捷：四川泡菜的简便做法·增加虾肉弹性的最佳方案.";
    label.numberOfLines = 0;
    [label sizeToFit];
    label.font = [UIFont systemFontOfSize:18];

    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeSystem];
    button.frame = CGRectMake(WIDTH / 100 * 36.5, HEIGHT / 100 * 11, WIDTH / 100 * 22.5, HEIGHT / 100 * 10);
    [self.view addSubview:button];
    [button addTarget:self action:@selector(click:) forControlEvents:UIControlEventTouchUpInside];

}

- (void)click: (UIButton *)button{
    
    //      模态回去
    [self dismissViewControllerAnimated:YES completion:^{
        
    }];
    
    
    
}




- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}


















@end




















